package com.yeshine.opendata.core;

import com.yeshine.opendata.utils.PageResult;
import com.yeshine.opendata.utils.Result;

/**
 * Created by taohj on 2014/4/1.
 */
public interface IService<T extends EntityBase> {


    public  abstract Result<T> create(T t);

    public  abstract Result<T> remove(T t);

    public  abstract Result<T> modify(T t);



    public  abstract Result<T> getById(Integer id);

    public  abstract Result<T> getList(T t);

    public  abstract Result<T> getByPage(PageResult<T> pageResult);








}
